package com.hrms.hrms_security.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hrms.common.vo.ResultMessage;
import com.hrms.hrms_security.entity.SysUsr;
import com.hrms.hrms_security.exception.BusinessException;


/**
 * (SysUsr)表服务接口
 *
 * @author makejava
 * @since 2024-03-28 14:07:49
 */
public interface SysUsrService extends IService<SysUsr> {

    ResultMessage usrLogin(SysUsr sysUsr);

    SysUsr getByUsername(String username);

    String getUserAuthorityInfo(Long userId);

    ResultMessage usrRegister(SysUsr sysUsr) throws BusinessException;

    SysUsr getByAccount(String sysUsrName) throws BusinessException;

    ResultMessage loginOut();
}

